package com.jgp.glmeeting.service;

import com.jgp.glmeeting.model.Inform;
import com.jgp.glmeeting.model.Meeting;
import com.jgp.glmeeting.model.Participants;
import com.jgp.sys.ui.Pager;

import javax.xml.rpc.ServiceException;
import java.rmi.RemoteException;
import java.util.List;

public interface InformService {

    //查询所有通知
    List<Inform> queryInforms(Inform i, Pager pager);

    //添加通知
    void addInform(Inform i);

    //删除通知
    void removeInform(String id);

    //修改通知  先查 再改
    Inform queryInformID(String id);

    /**
     * 根据会议跟人查询通知
     * @param meetingId
     * @param participantsId
     * @return
     */
    List<Inform> queryListByMeetingIdAndParticipantsId(String meetingId, String participantsId);

    /**
     * 添加通知并发送短信
     * @param inform
     * @param participants
     * @param meeting
     */
    void addInformAndSendSms(Inform inform, Participants participants, Meeting meeting) throws Exception;
}
